<?php
/**
 * Created by PhpStorm.
 * User: BlueIdeaLirui
 * Date: 2019/09/04
 * Time: 14:58
 */

namespace business\elasticsearch\types;

class LandDetailsAggsType
{
    /**
     * 土地项目详情数据聚合对应
     * @var array
     */
    public static $aggs = [
        'land_take' => [
            [
                'name' => 'totalarea',
                'field' => 'area'
            ],
            [
                'name' => 'totalfee',
                'field' => 'take_land_price'
            ]
        ],
        'land_project' => [
            [
                'name' => 'totalarea',
                'field' => 'area'
            ]
        ],
        'land_construction' => [
            [
                'name' => 'totalarea',
                'field' => 'area'
            ],
            [
                'name' => 'totalfee',
                'field' => 'contract_price'
            ]
        ],
    ];
}
